"""
进行封装初始化和清理方法
"""
import time
import unittest
from common.driver import Driver
class MyTest(unittest.TestCase):
    @classmethod
    def setUpClass(cls) -> None:
        d = Driver()
        cls.driver = d.startUp()

    @classmethod
    def tearDownClass(cls) -> None:
        time.sleep(5)
        cls.driver.quit()

    def setUp(self) -> None:
        self.driver.launch_app()

    def tearDown(self) -> None:
        self.driver.close_app()